package com.yanqu.road.entity.musicroom;


import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_u_music_room_appraise", autoSave = true, desc = "妙音坊评价数据")
public class UserMusicRoomAppraiseData extends DataObject {

    @FieldTypeAnnotation(desc = "用户Id", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "评价id", update = true)
    private int appraiseId;

    @FieldTypeAnnotation(desc = "建筑id")
    private int buildId;

    @FieldTypeAnnotation(desc = "家具id")
    private int furnitureId;

    @FieldTypeAnnotation(desc = "评价的美女id")
    private int beautyId;

    @FieldTypeAnnotation(desc = "评价时间,毫秒")
    private long appraiseTime;

    @FieldTypeAnnotation(desc = "原评价")
    private int status;
    @FieldTypeAnnotation(desc = "新评价")
    private int newStatus;
    @FieldTypeAnnotation(desc = "差评变好评目标等级")
    private int targetLevel;

    public UserMusicRoomAppraiseData() {
    }

    public UserMusicRoomAppraiseData(long userId, int appraiseId) {
        this.userId = userId;
        this.appraiseId = appraiseId;
        setInsertOption();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getAppraiseId() {
        return appraiseId;
    }

    public void setAppraiseId(int appraiseId) {
        this.appraiseId = appraiseId;
    }

    public int getBuildId() {
        return buildId;
    }

    public void setBuildId(int buildId) {
        this.buildId = buildId;
        setUpdateOption();
    }

    public int getFurnitureId() {
        return furnitureId;
    }

    public void setFurnitureId(int furnitureId) {
        this.furnitureId = furnitureId;
        setUpdateOption();
    }

    public int getBeautyId() {
        return beautyId;
    }

    public void setBeautyId(int beautyId) {
        this.beautyId = beautyId;
        setUpdateOption();
    }

    public long getAppraiseTime() {
        return appraiseTime;
    }

    public void setAppraiseTime(long appraiseTime) {
        this.appraiseTime = appraiseTime;
        setUpdateOption();
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        setUpdateOption();
    }

    public int getNewStatus() {
        return newStatus;
    }

    public void setNewStatus(int newStatus) {
        this.newStatus = newStatus;
        setUpdateOption();
    }

    public void resetAppraise(){
        this.buildId = 0;
        this.furnitureId = 0;
        this.beautyId = 0;
        this.status = 0;
        this.newStatus = 0;
        setUpdateOption();
    }

    public int getTargetLevel() {
        return targetLevel;
    }

    public void setTargetLevel(int targetLevel) {
        this.targetLevel = targetLevel;
        setUpdateOption();
    }
}
